package com.un.web.topic.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.un.web.topic.mapper.TopicJavaAnswerMapper;
import com.un.web.topic.domian.entity.TopicJavaAnswer;
import com.un.web.topic.service.TopicJavaAnswerService;

/**
 * @Author xingjian
 * @Date 2023-02-01
 **/

@Service
public class TopicJavaAnswerServiceImpl extends ServiceImpl<TopicJavaAnswerMapper, TopicJavaAnswer> implements TopicJavaAnswerService {

    @Autowired
    private TopicJavaAnswerMapper topicJavaAnswerMapper;
    @Override
    public List<TopicJavaAnswer> listByTopicId(Integer topicId) {
        return topicJavaAnswerMapper.selectList(new QueryWrapper<TopicJavaAnswer>().eq("topic_id",topicId));
    }
}

